package com.petshop.pets.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.petshop.pets.mapper.PetPetsMapper;
import com.petshop.pets.domain.PetPets;
import com.petshop.pets.service.IPetPetsService;

/**
 * 宠物信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-11
 */
@Service
public class PetPetsServiceImpl implements IPetPetsService 
{
    @Autowired
    private PetPetsMapper petPetsMapper;

    /**
     * 查询宠物信息
     * 
     * @param petID 宠物信息主键
     * @return 宠物信息
     */
    @Override
    public PetPets selectPetPetsByPetID(Long petID)
    {
        return petPetsMapper.selectPetPetsByPetID(petID);
    }

    /**
     * 查询宠物信息列表
     * 
     * @param petPets 宠物信息
     * @return 宠物信息
     */
    @Override
    public List<PetPets> selectPetPetsList(PetPets petPets)
    {
        return petPetsMapper.selectPetPetsList(petPets);
    }

    /**
     * 新增宠物信息
     * 
     * @param petPets 宠物信息
     * @return 结果
     */
    @Override
    public int insertPetPets(PetPets petPets)
    {
        return petPetsMapper.insertPetPets(petPets);
    }

    /**
     * 修改宠物信息
     * 
     * @param petPets 宠物信息
     * @return 结果
     */
    @Override
    public int updatePetPets(PetPets petPets)
    {
        return petPetsMapper.updatePetPets(petPets);
    }

    /**
     * 批量删除宠物信息
     * 
     * @param petIDs 需要删除的宠物信息主键
     * @return 结果
     */
    @Override
    public int deletePetPetsByPetIDs(Long[] petIDs)
    {
        return petPetsMapper.deletePetPetsByPetIDs(petIDs);
    }

    /**
     * 删除宠物信息信息
     * 
     * @param petID 宠物信息主键
     * @return 结果
     */
    @Override
    public int deletePetPetsByPetID(Long petID)
    {
        return petPetsMapper.deletePetPetsByPetID(petID);
    }
}
